package com.gimi.cloud.jimi.manage.consumer.feign;

import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import com.gimi.cloud.jimi.dto.prod.ProdBrandDTO;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by lixj on 2017/12/18.
 */
@FeignClient(name = "jimi-manage-service")
public interface ProdBrandFeignService {

    /***商品品类操作开始
     * @param prodBrandDTO***/
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/list", method = RequestMethod.POST)
    Response getBrandList(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/add", method = RequestMethod.POST)
    Response brandAdd(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/update", method = RequestMethod.POST)
    Response brandUpdate(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/delete", method = RequestMethod.POST)
    Response brandDelete(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/pageList", method = RequestMethod.POST)
    Response getBrandPageList(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/gotoEditProdBrand", method = RequestMethod.POST)
    Response gotoEditProdBrand(ProdBrandDTO prodBrandDTO);

    @Headers({"Content-Type: mutipart/form-data","Accept: application/json"})
    @RequestMapping(value = "/brand/fileUpload", method = RequestMethod.POST)
    Response fileUpload(MultiValueMap multipartFiles);
    /***商品品类操作结束***/
}
